<template>
  <div>
   <van-button type='danger'>11</van-button>
   <van-icon name="chat-o" />
   
  </div>
</template>

<script setup lang="ts">
import { showDialog } from 'vant';
import 'vant/es/dialog/style';
import req from '@/utils/req'
//as  别名语法  起个别名
// import { Button  as vanButton} from 'vant'

showDialog({
  title: '标题',
  message: '代码是写出来给人看的，附带能在机器上运行。',
}).then(() => {
  // on close
});

showDialog({
  message: '生命远不止连轴转和忙到极限，人类的体验远比这辽阔、丰富得多。',
}).then(() => {
  // on close
});
req.get('https://api.jiasiyuan.cn/news?page=1').then((res) => {
  console.log(res);
  
})
</script>

<style scoped></style>
